<?php
/**
 * Created by PhpStorm.
 * User: 16020
 * Date: 2018/11/25
 * Time: 14:52
 */

namespace app\admin\model;


use think\Model;

class Customer extends Model
{
    public function profile()
    {
        return $this->hasOne('Customer','id','transfer')->field('name as transfer_name');
    }
}